package library.logic;

import java.util.Date;

/**
 * User: RockCrazy
 * Date: 06.01.12
 * Time: 16:49
 */
public class Book
{
	private int     bookId;
	private String  bookName;
	private String  author;
	private String  izdatel;
	private int     numIzdan;
	private int     yearIzdan;
	private int     kolvoStr;
	private Double  price;
	private int     temaId;
	private Boolean exist;
	private Date    datePrihod;
	private String  letterCode;
	private String  polka;
	private String  prim;
	private String  oglav;
	private String  tag;

	public Book()
	{
	}

	public Book(int bookId, String bookName, String author, String izdatel, int numIzdan, int yearIzdan, int kolvoStr,
	            Double price, int temaId, Boolean exist, Date datePrihod, String letterCode, String polka, String prim,
	            String oglav, String tag)
	{
		this.bookId = bookId;
		this.bookName = bookName;
		this.author = author;
		this.izdatel = izdatel;
		this.numIzdan = numIzdan;
		this.yearIzdan = yearIzdan;
		this.kolvoStr = kolvoStr;
		this.price = price;
		this.temaId = temaId;
		this.exist = exist;
		this.datePrihod = datePrihod;
		this.letterCode = letterCode;
		this.polka = polka;
		this.prim = prim;
		this.oglav = oglav;
		this.tag = tag;
	}

	public void setBookId(int bookId)
	{
		this.bookId = bookId;
	}

	public void setBookName(String bookName)
	{
		this.bookName = bookName;
	}

	public void setAuthor(String author)
	{
		this.author = author;
	}

	public void setIzdatel(String izdatel)
	{
		this.izdatel = izdatel;
	}

	public void setNumIzdan(int numIzdan)
	{
		this.numIzdan = numIzdan;
	}

	public void setYearIzdan(int yearIzdan)
	{
		this.yearIzdan = yearIzdan;
	}

	public void setKolvoStr(int kolvoStr)
	{
		this.kolvoStr = kolvoStr;
	}

	public void setPrice(Double price)
	{
		this.price = price;
	}

	public void setTemaId(int temaId)
	{
		this.temaId = temaId;
	}

	public void setExist(Boolean exist)
	{
		this.exist = exist;
	}

	public void setDatePrihod(Date datePrihod)
	{
		this.datePrihod = datePrihod;
	}

	public void setLetterCode(String letterCode)
	{
		this.letterCode = letterCode;
	}

	public void setPolka(String polka)
	{
		this.polka = polka;
	}

	public void setPrim(String prim)
	{
		this.prim = prim;
	}

	public void setOglav(String oglav)
	{
		this.oglav = oglav;
	}

	public void setTag(String tag)
	{
		this.tag = tag;
	}

	public int getBookId()
	{
		return bookId;
	}

	public String getBookName()
	{
		return bookName;
	}

	public String getAuthor()
	{
		return author;
	}

	public String getIzdatel()
	{
		return izdatel;
	}

	public int getNumIzdan()
	{
		return numIzdan;
	}

	public int getYearIzdan()
	{
		return yearIzdan;
	}

	public int getKolvoStr()
	{
		return kolvoStr;
	}

	public Double getPrice()
	{
		return price;
	}

	public int getTemaId()
	{
		return temaId;
	}

	public Boolean isExist()
	{
		return exist;
	}

	public Date getDatePrihod()
	{
		return datePrihod;
	}

	public String getLetterCode()
	{
		return letterCode;
	}

	public String getPolka()
	{
		return polka;
	}

	public String getPrim()
	{
		return prim;
	}

	public String getOglav()
	{
		return oglav;
	}

	public String getTag()
	{
		return tag;
	}
	public String toString()
	{
		return bookName + " " + author;
	}
}

